package com.lottery.material.service.portal.article.impl;

import com.lottery.material.dao.article.ArticleActiveInfoMapper;
import com.lottery.material.service.portal.article.ArticleActiveInfoService;
import com.lottery.material.vo.portal.article.ArticleInfoListVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Description:    文章活跃信息服务实现类
 * Author:         sunny
 * CreateDate:     2019-04-20 16:02
 */
@Service
public class ArticleActiveInfoServiceImpl implements ArticleActiveInfoService {

    @Autowired
    private ArticleActiveInfoMapper articleActiveInfoMapper;

    /**
     * description: 查询推广文章
     * author sunny
     * createDate 2019-04-20 下午 4:02
     * @param paramMap
     * @return
     */
    @Override
    public List<ArticleInfoListVo> findPromotionArticle(Map<String, Object> paramMap) {
        return articleActiveInfoMapper.findPromotionArticle(paramMap);
    }

    /**
     * description: 查询热帖文章
     * author sunny
     * createDate 2019-04-20 下午 5:11
     * @param paramMap
     * @return
     */
    @Override
    public List<ArticleInfoListVo> findHotArticle(Map<String, Object> paramMap) {
        return articleActiveInfoMapper.findHotArticle(paramMap);
    }

    /**
     * description: 查询关注的文章
     * author sunny
     * createDate 2019-04-22 下午 7:20
     * @param paramMap
     * @return
     */
    @Override
    public List<ArticleInfoListVo> findAttentionArticle(Map<String, Object> paramMap) {
        return articleActiveInfoMapper.findAttentionArticle(paramMap);
    }

    /**
     * description: 根据菜单编号查询不同的文章
     * author sunny
     * createDate 2019-04-22 下午 8:06
     * @param paramMap
     * @return
     */
    @Override
    public List<ArticleInfoListVo> findPublicArticle(Map<String, Object> paramMap) {
        return articleActiveInfoMapper.findPublicArticle(paramMap);
    }

    /**
     * description: 查询广场的文章
     * author sunny
     * createDate 2019-04-22 下午 8:22
     * @param paramMap
     * @return
     */
    @Override
    public List<ArticleInfoListVo> findPlazaArticle(Map<String, Object> paramMap) {
        return articleActiveInfoMapper.findPlazaArticle(paramMap);
    }

    /**
     * description: 查询精彩的文章
     * author sunny
     * createDate 2019-04-23 上午 10:25
     * @param paramMap
     * @return
     */
    @Override
    public List<ArticleInfoListVo> findWonderfulArticle(Map<String, Object> paramMap) {
        return articleActiveInfoMapper.findWonderfulArticle(paramMap);
    }
}
